package com.edu.admin;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

import tk.mybatis.spring.annotation.MapperScan;

/**
 * 
 *  
 * @author Wangjiong
 * 
 */
@SpringBootApplication
@EnableScheduling
@MapperScan("com.edu.admin.mapper")
@ServletComponentScan
@ComponentScan(value = {"com.edu.admin"})
@EnableAutoConfiguration
public class EduAdminApplication {
	
	@Bean
    public BCryptPasswordEncoder bCryptPasswordEncoder(){ 
        return new BCryptPasswordEncoder();
	}
	
	public static void main(String[] args) {
		SpringApplication.run(EduAdminApplication.class, args);
	}

}
